package org.tea.inventory.db.dao;

import org.tea.inventory.db.domain.QuestionSort;

import java.util.List;

public interface QuestionSortMapper {

    /**
     * 返回问题数量大于等于num的问题种类sort
     * @param num 最少的问题数量
     * @return
     */
    List<QuestionSort> selectSortEnough(Integer num);

    List<QuestionSort> selectByExample(QuestionSort record);

    int deleteByPrimaryKey(Integer id);

    int insert(QuestionSort record);

    int insertSelective(QuestionSort record);

    QuestionSort selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionSort record);

    int updateByPrimaryKey(QuestionSort record);

    int updateQuestionNumByPrimaryKey(Integer id);

}
